-
Notifications
You must be signed in to change notification settings - Fork 250
feat: PREVENT_DEFAULT command #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: PREVENT_DEFAULT command #187
Conversation
dom-renderers/DOMRenderer.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs docs
|
@michaelobriena I mentioned the missing docs in the PR. My question was rather whether we want a preventDefault command or if we should handle that case in addUIEvent. E.g. @browles suggested having an Counterargument: preventDefault is DOM-specific and adding it to addUIEvent makes dynamically changing preventDefault after adding the event impossible. Thoughts? |
|
I know you did, it is just a way for me to note it for myself :) |
|
Ahhh ok :) |
|
How about just |
cdd359b to
8992545
Compare
|
@browles 👍 changed |
8992545 to
d869275
Compare
d869275 to
f56d1a7
Compare
|
What's the status on this PR? |
|
This should be merged ASAP IMO. |
|
Don't these conflict? #215 |
|
Yes, they do. Why did/ Did you copy over "UNSUBSCRIBE" instead of basing off of this PR? |
f56d1a7 to
8133f65
Compare
|
Didn't copy anything over, just started from scratch. We can merge this and then I can reconcile the other PR with it. |
|
Sounds good. Ok. |
|
@alexanderGugel This is not ready to merge as there are still public functions without docs. |
|
NOOOO!! Ok. All user-facing APIs are documented. Will fix. |
* Add `PREVENT_DEFAULT` and `PROMOTE_DEFAULT` commands * No longer preventDefault by default * Add `UNSUBSCRIBE` command
8133f65 to
fe0e330
Compare
|
@michaelobriena Sorry. Thought the diff was outdated. All documented now. |
PREVENT_DEFAULTandPROMOTE_DEFAULTcommandsUNSUBSCRIBEcommandFixes #167
@DnMllr @browles Thoughts?